package com.mmall.concurrency.example.publish;

import lombok.extern.slf4j.Slf4j;
import org.omg.CORBA.PUBLIC_MEMBER;

import java.util.Arrays;

/**
 * <p>Descriptions...
 *
 * @author Diamon.Cheng
 * @date 2019/12/5.
 */
@Slf4j
public class UnsafePublishs {
    private  String [] states = {"a","b","c"};
    public  String[] getStates(){
        return  states;
    };
    
    public static void main(String[] args) {
         UnsafePublishs  publishs = new UnsafePublishs();
         
         log.info("{}", Arrays.toString(publishs.getStates()));
    
        publishs.getStates()[0] = "d";
        log.info("{}", Arrays.toString(publishs.getStates()));
    }
    
    
    
}
